package com.situ.mianXiangDuiXiang.entity;

public class DisplayObj {
    private String name;
    private Integer size;


    public void xianshi(){
        System.out.println("啥也不显示");
    }

    public void xianshi(Object object){
        System.out.println("显示了"+object);
    }

    public DisplayObj() {
    }

    public DisplayObj(String name, Integer size) {
        this.name = name;
        this.size = size;
    }

    @Override
    public String toString() {
        return "DisplayObj{" +
                "name=" + name +
                ", size=" + size +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
